<?php
	$mdlDev = new ObjData2(TBL_PREFIX.'devices');
	// Cac field hien thi tren form nhap
	$mdlDev->arrInputFields = array('devname', 'imei', 'simno', 'devtype', 'store', 'username', 'driver', 
                                    'driverphone', 'cartype', 'icon', 'description', 'active');
	// Map cac field voi ten cua doi tuong
	$mdlDev->arrFieldsMap = array('devname'     =>'txtDeviceName',
                                  'imei'        =>'txtIMEI',
                                  'simno'         =>'txtSim',
                                  'devtype'     =>'cmbDevType',
                                  'store'       =>'cmbStores',
                                  'username'    =>'cmbUsers',
                                  'driver'      =>'txtDriver', 
                                  'driverphone' =>'txtDriverPhone', 
                                  'cartype'     =>'cmbType', 
                                  'icon'        =>'cmbImage',
                                  'description'  =>'txtDesc',
                                  'active'      =>'chkActive');
	//Cac field bat buoc phai nhap
	//$mdlUser->arrRequired = array('username'=>1, 'pass'=>1);
	// Cac field can validate
	//$mdlUser->arrValidator = array('ussername'=>'Name');
	// Dieu chinh cac tieu de
	$mdlDev->arrCaptions = array('devname' => 'Phương tiện', 'driver'=>'Tài Xế', 'driverphone'=>'ĐT Tài Xế', 'cartype'=>'Loại', 'icon'=>'Hình');
	// Cac o nhap khong phai la textbox
	$mdlDev->arrInput = array('cartype' =>'combobox', 
                              'icon'    =>'combobox',
                              'devtype' =>'combobox',
                              'store'   =>'combobox',
                              'username'=>'combobox',
                              'active'  =>'checkbox');
